<extend name="Base/common"/>
<block name="style">
    <style type="text/css">

    </style>
</block>
<block name="body">

    <div class="weui-cells">

        <div style="text-align: center;width:100%;display: block;font-size: 1.5em;padding-top:0.5em " class="">支付金额</div>
            <div style="text-align: center;width:100%;padding-top:0.2em;padding-bottom: 0.8em;display: block;font-size: 1.2em;" class="">100.22</div>
    </div>


    <div class="weui-cells">
        <div class="weui-cell">
            <div class="weui-cell__bd">
                <p>收款方</p>
            </div>
            <div class="weui-cell__ft">南宁笑笑网络科技有限公司</div>
        </div>

        <div class="weui-cell">
            <div class="weui-cell__bd">
                <p>订单号</p>
            </div>
            <div class="weui-cell__ft">225515654425</div>
        </div>
        <div class="weui-cell">
            <div class="weui-cell__bd">
                <p>下单时间</p>
            </div>
            <div class="weui-cell__ft">还款</div>
        </div>
    </div>


    <div class="page__bd page__bd_spacing" style="padding-top: 2em;">
        <a href="javascript:;" id="chooseWXPay" onclick="onBridgeReady();" class="weui-btn weui-btn_primary">立即支付</a>
    </div>
</block>
<block name="script">
    <script >


        function onBridgeReady(){
            /*
            WeixinJSBridge.invoke(
                    'getBrandWCPayRequest', {
                        "appId":"{$info.appId}",     //公众号名称，由商户传入
                        "timeStamp":"{$info.timeStamp}",         //时间戳，自1970年以来的秒数
                        "nonceStr":"{$info.nonceStr}", //随机串
                        "package":"{$info.package}",
                        "signType":"MD5",         //微信签名方式：
                        "paySign":"{$info.paySign}" //微信签名
                    },
                    function(res){
                        if(res.err_msg == 'get_brand_wcpay_request:ok'){
                            popup.alert('支付成功，感谢使用我们的服务，欢迎下次在光临。');
                            //交易成功
                        }else if(res.err_msg == 'get_brand_wcpay_request:cancel'){
                            //alert('支付过程中用户取消');
                        }else if(res.err_msg == 'get_brand_wcpay_request:fail'){
                            // alert('支付失败');
                        }
                    }
            );
        }
        if (typeof WeixinJSBridge == "undefined"){
            if( document.addEventListener ){
                document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
            }else if (document.attachEvent){
                document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
                document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
            }
        }else{
            onBridgeReady();
        }
*/
    </script>

</block>